import http from '@/service/http'
import type * as T from '@/types/api/index'
const terminalApi: T.ICommentApi = {
  list(params) {
    return http.get('/admin/terminal', params)
  },
  add(data) {
    return http.post('/admin/terminal/add', data)
  },
  edit(data) {
    return http.post('/admin/terminal/edit', data)
  },
  del(data) {
    return http.delete('/admin/terminal', data.ids)
  },
}

export default terminalApi
